<% @templates.each do |template| %>
  <%= select_template_item(template, false) unless @selection.to_i == template.id %>
<% end -%>

<% more_id = "more_templates_from_" + @offset.to_s -%>
<% if @limit > 0 -%>
  <div class="more" id="<%= more_id %>">
    <%= link_to_remote "更多...", 
      :update => more_id, 
      :url => {:limit => @limit, :offset => @offset},
      :loading => '$("loader_more").show()',
      :loaded => '$("loader_more").hide()'
    %>
    <%= image_tag "active_scaffold/default/indicator.gif", :style => "display:none", :id => 'loader_more' %>
  </div>
<% end -%>
